﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TestAppSite.Controllers
{
    public class StaticController : Controller
    {
        //
        // GET: /Static/

        public ActionResult CSSUrl()
        {
            return View();
        }

        public ActionResult Iframes()
        {
            return View();
        }

        public ActionResult Stylesheets()
        {
            return View();
        }

        public ActionResult Scripts()
        {
            return View();
        }

        public ActionResult Cookies()
        {
            var cookie = new HttpCookie("testCookie", "test value");
            this.Response.SetCookie(cookie);

            var httpOnlyCookie = new HttpCookie("testHttpOnly", "testHttpOnly value");
            httpOnlyCookie.HttpOnly = true;
            this.Response.SetCookie(httpOnlyCookie);

            return View();
        }

    }
}
